<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	测试计数器的页面
   <%
   if(application.getAttribute("counter")==null){
	   application.setAttribute("counter", "1");
   }
   else{
	   String str = null;
	   str = application.getAttribute("counter").toString();
	   int icount=0;
	   icount = Integer.valueOf(str).intValue();
	   icount++;
	   application.setAttribute("counter",Integer.toString(icount));
   }
   %>
 		  您是第<%=application.getAttribute("counter") %>位访问者！
   
   
</body>
</html>